package com.hg.chapter3.thread;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AsyncService {

    @Async
    public void async1(int num) {
        System.out.println("async1-" + num);
    }

    @Async
    public void async2(int num) {
        System.out.println("async2-" + num);
    }
}
